﻿using MLSMooc.DAO.Implement.Wechat;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using MLSMooc.Helper;

namespace MLSMooc.Controllers
{
    public class WechatController : Controller
    {
        WechatDAO wechatDAO = WechatDAO.Getinstance();
        // GET: Wechat
        [HttpGet]
        public async Task<string> GetWechatList()
        {
            var res = await wechatDAO.GetWechatList();
            return SerializeHelper.SerializeJson(res);
        }
    }
}